package com.hopes.bizz.close.common.constant;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 封闭园区属性
 * @time 2023/10/28 21:25
 */
@Data
@RefreshScope
@Component
@ConfigurationProperties("close.park")
public class ParkCloseProperty implements Serializable{


    private static final long serialVersionUID = 6389409121659092541L;

    /**
     * GIS相关配置
     */
    private GisProperty gis = new GisProperty();

    @Data
    public static class GisProperty implements Serializable {

        private static final long serialVersionUID = -3965087229474097138L;

        /**
         * 统计图表中查询时间范围小于两天，以小时纬度统计
         */
        private Integer chartHourToDay = 2;
    }

}
